package com.mujin.keji.collectionsystem.base;

import java.io.Serializable;

/**
 * 请求服务器的公共参数
 *
 * @author weishixiong
 * @Time 2018-03-19
 */
public class BaseVo implements Serializable {


    private String session;
    private String method;
    private String timestamp;

    private Object data;

    @Override
    public String toString() {
        return "BaseVo{" +
                "session='" + session + '\'' +
                ", method='" + method + '\'' +
                ", timestamp='" + timestamp + '\'' +
                ", data=" + data +
                '}';
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    //    private String token;
//
//    public BaseVo() {
//        setToken(SPUtil.getData(Constant.SP.SP,Constant.SP.LOGIN_KEY,LoginDto.class,null)==null?null:SPUtil.getData(Constant.SP.SP,Constant.SP.LOGIN_KEY,LoginDto.class,null).getToken());
//        setUsername(SPUtil.getData(Constant.SP.SP,Constant.SP.LOGIN_KEY,LoginDto.class,null)==null?null:SPUtil.getData(Constant.SP.SP,Constant.SP.LOGIN_KEY,LoginDto.class,null).getUserName());
//    }
//
//    public String getUsername() {
//        return username;
//    }
//
//    public void setUsername(String username) {
//        this.username = username;
//    }
//
//    public String getToken() {
//        return token;
//    }
//
//    public void setToken(String token) {
//        this.token = token;
//    }
}
